<template>
	<view>
		订单详情
	</view>
</template>

<script>
	export default {
		data() {
			return {
			}
		},
		onLoad(options) {
			this.getOrderDetail(parseInt(options.id));
		},
		methods: {
			getOrderDetail(id){
				console.log(id);
				let token = uni.getStorageSync("token");
				uni.showLoading({
					title: '请稍后……',
					mask: false
				});
				uniCloud.callFunction({
					name:'getOrderDetail',
					data:{
						id,
						token
					}
				}).then(res=>{
					uni.hideLoading()
					console.log(res);
				}).catch(err=>{
					uni.hideLoading()
					console.log(err);
				})
			}
		}
	}
</script>

<style>

</style>
